package com.sunyy.wordparser.pojo.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sunyy
 * @date 2024/11/12
 */

@Data
public class CmdEntity {

    private String cmdName;

    private List<String> cmd;

    private List<String> cmdPower;

    private List<String> cmdFormat;

    private StringBuilder view;

    private StringBuilder defaultLevel;

    private StringBuilder usageGuide;

    private StringBuilder example;

    private List<ParamEntity> params;

    private List<String> huaweiCmd;

    public static CmdEntity buildCmdEntity() {
        CmdEntity cmdEntity = new CmdEntity();
        cmdEntity.setCmd(new ArrayList<>());
        cmdEntity.setCmdPower(new ArrayList<>());
        cmdEntity.setCmdFormat(new ArrayList<>());
        cmdEntity.setView(new StringBuilder());
        cmdEntity.setDefaultLevel(new StringBuilder());
        cmdEntity.setUsageGuide(new StringBuilder());
        cmdEntity.setExample(new StringBuilder());
        cmdEntity.setParams(new ArrayList<>());
        cmdEntity.setHuaweiCmd(new ArrayList<>());
        return cmdEntity;
    }

}
